<script setup lang="ts">
import {ref, watch} from 'vue'
import {useRoute} from "vue-router";
const route = useRoute()
const activeIndex = ref()

watch(()=>route.path, (newIndex, _) => {
  activeIndex.value = newIndex
})


</script>

<template>
  <el-menu
      router
      :default-active="activeIndex"
      mode="horizontal">
<!--    <el-menu-item index="/order" >订单查询</el-menu-item>-->
    <el-menu-item index="/link">软件集合查询</el-menu-item>
    <el-menu-item index="/query">历史订单/版本链接查询</el-menu-item>
  </el-menu>
</template>

<style scoped>




</style>
